\hypertarget{class_c_i___typography}{\section{C\-I\-\_\-\-Typography Class Reference}
\label{class_c_i___typography}\index{C\-I\-\_\-\-Typography@{C\-I\-\_\-\-Typography}}
}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_c_i___typography_a24c284b560f34d6c7fad07e36baaa024}{auto\-\_\-typography} (\$str, \$reduce\-\_\-linebreaks=F\-A\-L\-S\-E)
\item 
\hyperlink{class_c_i___typography_a45df135c8811c2b27085dbdfd05a1eed}{format\-\_\-characters} (\$str)
\item 
\hyperlink{class_c_i___typography_ac3384cbfc88fcd17e40624bdd6002801}{\-\_\-format\-\_\-newlines} (\$str)
\item 
\hyperlink{class_c_i___typography_a03e8f97de4301e0fe0cf0e9f0bcd936c}{\-\_\-protect\-\_\-characters} (\$match)
\item 
\hyperlink{class_c_i___typography_af9db9732eaa94a62b3a3ccc7f6bf860b}{nl2br\-\_\-except\-\_\-pre} (\$str)
\end{DoxyCompactItemize}
\subsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_c_i___typography_ac99f5bbe8e02dc1147e9a4205dc161eb}{\$block\-\_\-elements} = 'address$|$blockquote$|$div$|$dl$|$fieldset$|$form$|$h$\backslash$d$|$hr$|$noscript$|$object$|$ol$|$p$|$pre$|$script$|$table$|$ul'
\item 
\hyperlink{class_c_i___typography_a80c70a349bff88ad1ef94dea8753bc2e}{\$skip\-\_\-elements} = 'p$|$pre$|$ol$|$ul$|$dl$|$object$|$table$|$h$\backslash$d'
\item 
\hyperlink{class_c_i___typography_a7ee5f0598125dc7e6b17a08aa6da384f}{\$inline\-\_\-elements} = 'a$|$abbr$|$acronym$|$b$|$bdo$|$big$|$br$|$button$|$cite$|$code$|$del$|$dfn$|$em$|$i$|$img$|$ins$|$input$|$label$|$map$|$kbd$|$q$|$samp$|$select$|$small$|$span$|$strong$|$sub$|$sup$|$textarea$|$tt$|$var'
\item 
\hyperlink{class_c_i___typography_a822eaf22f556c5c52bd766779d9ee22f}{\$inner\-\_\-block\-\_\-required} = array('blockquote')
\item 
\hyperlink{class_c_i___typography_a8d5c4b7f2f7b74e118c682cf95688e22}{\$last\-\_\-block\-\_\-element} = ''
\item 
\hyperlink{class_c_i___typography_a6a74364571da23cc7187c864cde167ca}{\$protect\-\_\-braced\-\_\-quotes} = F\-A\-L\-S\-E
\end{DoxyCompactItemize}


\subsection{Member Function Documentation}
\hypertarget{class_c_i___typography_ac3384cbfc88fcd17e40624bdd6002801}{\index{C\-I\-\_\-\-Typography@{C\-I\-\_\-\-Typography}!\-\_\-format\-\_\-newlines@{\-\_\-format\-\_\-newlines}}
\index{\-\_\-format\-\_\-newlines@{\-\_\-format\-\_\-newlines}!CI_Typography@{C\-I\-\_\-\-Typography}}
\subsubsection[{\-\_\-format\-\_\-newlines}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-\_\-format\-\_\-newlines} (
\begin{DoxyParamCaption}
\item[{\$}]{str}
\end{DoxyParamCaption}
)}}\label{class_c_i___typography_ac3384cbfc88fcd17e40624bdd6002801}
Format Newlines

Converts newline characters into either 

tags or \par


public 
\begin{DoxyParams}{Parameters}
{\em string} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
string 
\end{DoxyReturn}
\hypertarget{class_c_i___typography_a03e8f97de4301e0fe0cf0e9f0bcd936c}{\index{C\-I\-\_\-\-Typography@{C\-I\-\_\-\-Typography}!\-\_\-protect\-\_\-characters@{\-\_\-protect\-\_\-characters}}
\index{\-\_\-protect\-\_\-characters@{\-\_\-protect\-\_\-characters}!CI_Typography@{C\-I\-\_\-\-Typography}}
\subsubsection[{\-\_\-protect\-\_\-characters}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-\_\-protect\-\_\-characters} (
\begin{DoxyParamCaption}
\item[{\$}]{match}
\end{DoxyParamCaption}
)}}\label{class_c_i___typography_a03e8f97de4301e0fe0cf0e9f0bcd936c}
Protect Characters

Protects special characters from being formatted later We don't want quotes converted within tags so we'll temporarily convert them to \{\} and \{\} and we don't want double dashes converted to emdash entities, so they are marked with \{\} likewise double spaces are converted to \{\} to prevent entity conversion

public 
\begin{DoxyParams}{Parameters}
{\em array} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
string 
\end{DoxyReturn}
\hypertarget{class_c_i___typography_a24c284b560f34d6c7fad07e36baaa024}{\index{C\-I\-\_\-\-Typography@{C\-I\-\_\-\-Typography}!auto\-\_\-typography@{auto\-\_\-typography}}
\index{auto\-\_\-typography@{auto\-\_\-typography}!CI_Typography@{C\-I\-\_\-\-Typography}}
\subsubsection[{auto\-\_\-typography}]{\setlength{\rightskip}{0pt plus 5cm}{\bf auto\-\_\-typography} (
\begin{DoxyParamCaption}
\item[{\$}]{str, }
\item[{\$}]{reduce\-\_\-linebreaks = {\ttfamily FALSE}}
\end{DoxyParamCaption}
)}}\label{class_c_i___typography_a24c284b560f34d6c7fad07e36baaa024}
Auto Typography

This function converts text, making it typographically correct\-:
\begin{DoxyItemize}
\item Converts double spaces into paragraphs.
\item Converts single line breaks into \par
 tags
\item Converts single and double quotes into correctly facing curly quote entities.
\item Converts three dots into ellipsis.
\item Converts double dashes into em-\/dashes.
\end{DoxyItemize}

Converts two spaces into entities

public 
\begin{DoxyParams}{Parameters}
{\em string} & \\
\hline
{\em bool} & whether to reduce more then two consecutive newlines to two \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
string 
\end{DoxyReturn}
\hypertarget{class_c_i___typography_a45df135c8811c2b27085dbdfd05a1eed}{\index{C\-I\-\_\-\-Typography@{C\-I\-\_\-\-Typography}!format\-\_\-characters@{format\-\_\-characters}}
\index{format\-\_\-characters@{format\-\_\-characters}!CI_Typography@{C\-I\-\_\-\-Typography}}
\subsubsection[{format\-\_\-characters}]{\setlength{\rightskip}{0pt plus 5cm}{\bf format\-\_\-characters} (
\begin{DoxyParamCaption}
\item[{\$}]{str}
\end{DoxyParamCaption}
)}}\label{class_c_i___typography_a45df135c8811c2b27085dbdfd05a1eed}
Format Characters

This function mainly converts double and single quotes to curly entities, but it also converts em-\/dashes, double spaces, and ampersands

public 
\begin{DoxyParams}{Parameters}
{\em string} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
string 
\end{DoxyReturn}
\hypertarget{class_c_i___typography_af9db9732eaa94a62b3a3ccc7f6bf860b}{\index{C\-I\-\_\-\-Typography@{C\-I\-\_\-\-Typography}!nl2br\-\_\-except\-\_\-pre@{nl2br\-\_\-except\-\_\-pre}}
\index{nl2br\-\_\-except\-\_\-pre@{nl2br\-\_\-except\-\_\-pre}!CI_Typography@{C\-I\-\_\-\-Typography}}
\subsubsection[{nl2br\-\_\-except\-\_\-pre}]{\setlength{\rightskip}{0pt plus 5cm}{\bf nl2br\-\_\-except\-\_\-pre} (
\begin{DoxyParamCaption}
\item[{\$}]{str}
\end{DoxyParamCaption}
)}}\label{class_c_i___typography_af9db9732eaa94a62b3a3ccc7f6bf860b}
Convert newlines to H\-T\-M\-L line breaks except within P\-R\-E tags

public 
\begin{DoxyParams}{Parameters}
{\em string} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
string 
\end{DoxyReturn}


\subsection{Field Documentation}
\hypertarget{class_c_i___typography_ac99f5bbe8e02dc1147e9a4205dc161eb}{\index{C\-I\-\_\-\-Typography@{C\-I\-\_\-\-Typography}!\$block\-\_\-elements@{\$block\-\_\-elements}}
\index{\$block\-\_\-elements@{\$block\-\_\-elements}!CI_Typography@{C\-I\-\_\-\-Typography}}
\subsubsection[{\$block\-\_\-elements}]{\setlength{\rightskip}{0pt plus 5cm}\$block\-\_\-elements = 'address$|$blockquote$|$div$|$dl$|$fieldset$|$form$|$h$\backslash$d$|$hr$|$noscript$|$object$|$ol$|$p$|$pre$|$script$|$table$|$ul'}}\label{class_c_i___typography_ac99f5bbe8e02dc1147e9a4205dc161eb}
\hypertarget{class_c_i___typography_a7ee5f0598125dc7e6b17a08aa6da384f}{\index{C\-I\-\_\-\-Typography@{C\-I\-\_\-\-Typography}!\$inline\-\_\-elements@{\$inline\-\_\-elements}}
\index{\$inline\-\_\-elements@{\$inline\-\_\-elements}!CI_Typography@{C\-I\-\_\-\-Typography}}
\subsubsection[{\$inline\-\_\-elements}]{\setlength{\rightskip}{0pt plus 5cm}\$inline\-\_\-elements = 'a$|$abbr$|$acronym$|$b$|$bdo$|$big$|$br$|$button$|$cite$|$code$|$del$|$dfn$|$em$|$i$|$img$|$ins$|$input$|$label$|$map$|$kbd$|$q$|$samp$|$select$|$small$|$span$|$strong$|$sub$|$sup$|$textarea$|$tt$|$var'}}\label{class_c_i___typography_a7ee5f0598125dc7e6b17a08aa6da384f}
\hypertarget{class_c_i___typography_a822eaf22f556c5c52bd766779d9ee22f}{\index{C\-I\-\_\-\-Typography@{C\-I\-\_\-\-Typography}!\$inner\-\_\-block\-\_\-required@{\$inner\-\_\-block\-\_\-required}}
\index{\$inner\-\_\-block\-\_\-required@{\$inner\-\_\-block\-\_\-required}!CI_Typography@{C\-I\-\_\-\-Typography}}
\subsubsection[{\$inner\-\_\-block\-\_\-required}]{\setlength{\rightskip}{0pt plus 5cm}\$inner\-\_\-block\-\_\-required = array('blockquote')}}\label{class_c_i___typography_a822eaf22f556c5c52bd766779d9ee22f}
\hypertarget{class_c_i___typography_a8d5c4b7f2f7b74e118c682cf95688e22}{\index{C\-I\-\_\-\-Typography@{C\-I\-\_\-\-Typography}!\$last\-\_\-block\-\_\-element@{\$last\-\_\-block\-\_\-element}}
\index{\$last\-\_\-block\-\_\-element@{\$last\-\_\-block\-\_\-element}!CI_Typography@{C\-I\-\_\-\-Typography}}
\subsubsection[{\$last\-\_\-block\-\_\-element}]{\setlength{\rightskip}{0pt plus 5cm}\$last\-\_\-block\-\_\-element = ''}}\label{class_c_i___typography_a8d5c4b7f2f7b74e118c682cf95688e22}
\hypertarget{class_c_i___typography_a6a74364571da23cc7187c864cde167ca}{\index{C\-I\-\_\-\-Typography@{C\-I\-\_\-\-Typography}!\$protect\-\_\-braced\-\_\-quotes@{\$protect\-\_\-braced\-\_\-quotes}}
\index{\$protect\-\_\-braced\-\_\-quotes@{\$protect\-\_\-braced\-\_\-quotes}!CI_Typography@{C\-I\-\_\-\-Typography}}
\subsubsection[{\$protect\-\_\-braced\-\_\-quotes}]{\setlength{\rightskip}{0pt plus 5cm}\$protect\-\_\-braced\-\_\-quotes = F\-A\-L\-S\-E}}\label{class_c_i___typography_a6a74364571da23cc7187c864cde167ca}
\hypertarget{class_c_i___typography_a80c70a349bff88ad1ef94dea8753bc2e}{\index{C\-I\-\_\-\-Typography@{C\-I\-\_\-\-Typography}!\$skip\-\_\-elements@{\$skip\-\_\-elements}}
\index{\$skip\-\_\-elements@{\$skip\-\_\-elements}!CI_Typography@{C\-I\-\_\-\-Typography}}
\subsubsection[{\$skip\-\_\-elements}]{\setlength{\rightskip}{0pt plus 5cm}\$skip\-\_\-elements = 'p$|$pre$|$ol$|$ul$|$dl$|$object$|$table$|$h$\backslash$d'}}\label{class_c_i___typography_a80c70a349bff88ad1ef94dea8753bc2e}


The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
/\-Applications/\-M\-A\-M\-P/htdocs/\-Workspace/blp2.\-0/system/libraries/\hyperlink{_typography_8php}{Typography.\-php}\end{DoxyCompactItemize}
